﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Norm;
using Common;
using Norm.GridFS;

namespace Model
{
    /// <summary>
    /// 账号信息
    /// </summary>
    public class User : Document
    {
        /// <summary>
        /// 用户真实姓名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 邮箱 (登录)
        /// </summary>
        public string EMail { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// 联系电话，可以多个
        /// </summary>
        public string[] Phone { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public SexType Sex { get; set; }

        /// <summary>
        /// 头像的ID
        /// </summary>
        public ObjectId Photo { get; set; }

        /// <summary>
        /// 所在城市ID
        /// </summary>
        public ObjectId CityId { get; set; }

        /// <summary>
        /// 地点所属县区、城区ID
        /// </summary>
        public ObjectId DistrictId { get; set; }
    }
}
